package client;

import rpc.Hello_Word;

/**
 * Created by JossC on 2016/9/9.
 */
public class ClientMain {

	public static void main(String[] args) {
		String host = "127.0.0.1";
		int port = 8080;

		try {
			Hello_Word h = (Hello_Word) RPCClient.getProxy(
					Hello_Word.class.getName(), host, port);
			System.out.println(h.sayHello("Tests"));
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
